<%--
  Created by IntelliJ IDEA.
  User: 86175
  Date: 2023/5/18
  Time: 22:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<link href="layui/css/layui.css" rel="stylesheet">
<!-- 引入 layui.js -->
<script src="layui/layui.js"></script>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>Title</title>
</head>
<style>
    form {
        width: 50%;
        margin: auto;
    }

    form input {
        width: 100%;
    }
</style>
<body>
<div>
    <form method="post" action="UpdataServlet">
        <c:forEach items="${rows}" var="column">
            <div class="layui-input-group">
                <div class="layui-input-split layui-input-prefix">
                        ${column.key}
                </div>
                <input type="text" name="${column.key}" value="${column.value}" class="layui-input">
                <input type="hidden" name="column" value="${column.key}"/>
                <input type="hidden" name="${column.key}_old" value="${column.value}" class="layui-input">
                <input type="hidden" name="oldColumn" value="${column.key}"/>
                <input type="hidden" name="tablename" value="${tablename}"/>
            </div>
            <br>
        </c:forEach>
        <button type="submit" class="layui-btn">修改</button>
    </form>

</div>
</body>
</html>
